#include "../include/log.h"
#include "../include/time1.h"

void logadd(char *buf)
{
	static char buff[1024]={0};
	bzero(buff,1024);
	static FILE *pf=NULL;
	pf=fopen("log.txt","a+");
	sprintf(buff,"时间:%s, %s\n",gettime(),buf);
	fwrite(buff,strlen(buff),1,pf);
	fclose(pf);
	pf=NULL;
	//写入时间
}
